<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
	$data = [
		'20180910'=>[
			['a','b','c','d','e'],
			['a','b','c','d','e'],
			['a','b','c','d','e'],
		],
		'20180912'=>[
			['a','b','c','d','e'],
			['a','b','c','d','e'],
			['a','b','c','d','e'],
			['a','b','c','d','e'],
		],
		'20180913'=>[
			['a','b','c','d','e'],
			['a','b','c','d','e'],
			['a','b','c','d','e'],
		],

	];
    return view('welcome')->with('data',$data);
});



Route::group(['middleware' => 'auth'], function () {
	Route::get('/home','IndexController@index')->name('home');
	Route::get('/video/list','VideoController@index')->name('videolist');
	Route::get('/video/post','VideoController@post')->name('videopost');
	Route::get('/video/look','VideoController@look')->name('videolook');
});

// 认证路由...
Route::get('auth/login', 'Auth\AuthController@getLogin');
Route::post('auth/login', 'Auth\AuthController@postLogin');
Route::get('auth/logout', 'Auth\AuthController@getLogout');

// 注册路由...
Route::get('auth/register', 'Auth\AuthController@getRegister')->name('user_register');
Route::post('auth/register', 'Auth\AuthController@postRegister');